package cn.lingyangwl.agile.food.model.rqrs.goods;

import cn.lingyangwl.agile.model.constants.ValidationCons;
import cn.lingyangwl.agile.food.model.entity.GoodsSpecValue;
import cn.lingyangwl.agile.food.model.rqrs.sku.SkuReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 商品
 *
 * @author shenguangyang
 */
@Getter
@Setter
@ApiModel(value = "更新商品")
public class GoodsUpdateReq extends GoodsBase {
    @NotNull(message = ValidationCons.NOT_EMPTY)
    private Long id;

    @ApiModelProperty(value = "sku数据")
    @NotNull(message = ValidationCons.NOT_EMPTY)
    private List<SkuReq> skuList;

    @ApiModelProperty(value = "spec规格")
    @NotNull(message = ValidationCons.NOT_EMPTY)
    private List<GoodsSpecValue> specList;
}
